import request from '@/utils/request'

export function getMenuList(data) {
  return request({
    url: '/system/menu/page',
    method: 'post',
    data
  })
}

export function fetchMenuAdd(data) {
  return request({
    url: '/menu/add',
    method: 'post',
    data
  })
}

export function fetchDel(data) {
  return request({
    url: '/menu/delete',
    method: 'get',
    params: data
  })
}
export function fetchUpdate(data) {
  return request({
    url: '/menu/update',
    method: 'POST',
    data
  })
}
export function delMenu(id) {
  return request({
    url: `/system/menu/delete/${id}`,
    method: 'post'
  })
}

